#!/usr/bin/env python
# -*- coding: utf-8 -*

def f_open(filepath):
    text = [line for line in open(filepath,"r")]
    text2= []
    # Замена 4-рех пробелов Табом
    for line in text:
	sb=0
	for i in range(len(line)):
	    if line[i]=="\t":sb+=1
	    else:break
	line = line[sb*1:]
	for i in range(sb):
	    line="        "+line
	text2 +=[line]

    text = []
    text = text2
    text2 = []
    for line in text:
	sb=0
	for i in range(len(line)):
	    if line[i]==" ":sb+=1
	    else:break
	sb = int(sb/4)
	line = line[sb*4:]
	
	for i in range(sb):
	    line="\t"+line
	text2 +=[line]
    
    return text2